package com.example.schoolenterprisealliance.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.schoolenterprisealliance.R;
import com.example.schoolenterprisealliance.bean.SearchHot;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

public class SearchHotAdapter extends BaseQuickAdapter<SearchHot, BaseViewHolder> {


    public SearchHotAdapter(int layoutResId, @Nullable List<SearchHot> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, SearchHot item) {
        helper.setText(R.id.tv_number,item.getNumber())
                .setText(R.id.tv_name,item.getName());
    }
}
